/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.venta.dao;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import com.isd.global.dao.BaseDAO;
import com.isd.venta.modelo.MovimientoVenta;
import com.isd.venta.modelo.MovimientoVentaPK;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author ctrosch
 */
@Stateless
@LocalBean
public class MovimientoVentaDAO extends BaseDAO {


    public MovimientoVenta getMovimiento(MovimientoVentaPK idPK){

        try {
            return getEntityManager().find(MovimientoVenta.class, idPK);
        } catch (Exception e) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "getMovimiento", e);                                
            return null;
        }
    }
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
